<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>TrackWeight - 将你的MacBook变成精密电子秤</title>
    <link href="https://cdn.staticfile.org/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
    <link href="https://cdn.staticfile.org/tailwindcss/2.2.19/tailwind.min.css" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/mermaid@latest/dist/mermaid.min.js"></script>
    <style>
        body {
            font-family: 'Noto Sans SC', Tahoma, Arial, Roboto, "Droid Sans", "Helvetica Neue", "Droid Sans Fallback", "Heiti SC", "Hiragino Sans GB", Simsun, sans-serif;
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            min-height: 100vh;
        }
        .hero-gradient {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }
        .card-hover {
            transition: all 0.3s ease;
        }
        .card-hover:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 40px rgba(0,0,0,0.1);
        }
        .feature-icon {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        .section-title {
            position: relative;
            padding-bottom: 1rem;
        }
        .section-title::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 60px;
            height: 4px;
            background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
            border-radius: 2px;
        }
        .code-block {
            background: #1e1e1e;
            color: #d4d4d4;
            border-radius: 8px;
            padding: 1.5rem;
            overflow-x: auto;
        }
        .step-number {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
        }
        .mermaid {
            display: flex;
            justify-content: center;
            margin: 2rem 0;
        }
        .highlight-text {
            background: linear-gradient(to right, #667eea, #764ba2);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            font-weight: 600;
        }
    </style>
</head>
<body>
    <!-- Hero Section -->
    <section class="hero-gradient text-white py-20">
        <div class="container mx-auto px-6">
            <div class="max-w-4xl mx-auto text-center">
                <div class="mb-6">
                    <i class="fas fa-weight text-6xl opacity-90"></i>
                </div>
                <h1 class="text-5xl font-bold mb-6">TrackWeight</h1>
                <p class="text-2xl mb-8 opacity-90">将你的MacBook触控板变成精密电子秤</p>
                <p class="text-lg mb-10 opacity-80 max-w-2xl mx-auto">
                    一个革命性的开源macOS应用，利用Force Touch技术实现高达3.5公斤的精准称重，无需额外硬件
                </p>
                <div class="flex justify-center space-x-6">
                    <a href="https://github.com/KrishKrosh/TrackWeight" target="_blank" class="bg-white text-purple-700 px-8 py-3 rounded-full font-semibold hover:bg-gray-100 transition duration-300 flex items-center">
                        <i class="fab fa-github mr-2"></i>
                        GitHub仓库
                    </a>
                    <div class="flex items-center space-x-2 text-white">
                        <i class="fas fa-star"></i>
                        <span class="font-semibold">6.2k Stars</span>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Main Content -->
    <div class="container mx-auto px-6 py-16">
        <!-- Problem Section -->
        <section class="mb-16">
            <div class="max-w-4xl mx-auto">
                <h2 class="text-3xl font-bold mb-8 section-title">它能解决什么问题</h2>
                <div class="bg-white rounded-2xl shadow-xl p-8 card-hover">
                    <div class="grid md:grid-cols-2 gap-8">
                        <div>
                            <h3 class="text-xl font-semibold mb-4 text-gray-800">
                                <i class="fas fa-exclamation-circle text-red-500 mr-2"></i>
                                日常痛点
                            </h3>
                            <ul class="space-y-3 text-gray-600">
                                <li><i class="fas fa-times text-red-400 mr-2"></i>缺乏便携式称重工具</li>
                                <li><i class="fas fa-times text-red-400 mr-2"></i>专用电子秤成本高且不便携</li>
                                <li><i class="fas fa-times text-red-400 mr-2"></i>硬件潜力未被充分利用</li>
                                <li><i class="fas fa-times text-red-400 mr-2"></i>临时称重需求难以满足</li>
                            </ul>
                        </div>
                        <div>
                            <h3 class="text-xl font-semibold mb-4 text-gray-800">
                                <i class="fas fa-lightbulb text-green-500 mr-2"></i>
                                创新解决方案
                            </h3>
                            <p class="text-gray-600 leading-relaxed">
                                TrackWeight巧妙地将MacBook触控板的Force Touch传感器转化为功能性电子秤，
                                <span class="highlight-text">无需额外硬件</span>即可实现精准称重，
                                为用户提供了一个即时、便携、零成本的称重解决方案。
                            </p>
                        </div>
                    </div>
                </div>
            </div>
        </section>

        <!-- Core Features -->
        <section class="mb-16">
            <div class="max-w-4xl mx-auto">
                <h2 class="text-3xl font-bold mb-8 section-title">核心功能概述</h2>
                <div class="grid md:grid-cols-2 gap-6">
                    <div class="bg-white rounded-xl shadow-lg p-6 card-hover">
                        <div class="text-4xl mb-4 feature-icon">
                            <i class="fas fa-exchange-alt"></i>
                        </div>
                        <h3 class="text-xl font-semibold mb-2">压力转重量</h3>
                        <p class="text-gray-600">通过Force Touch传感器，将压力数据直接转换为克重，精确到1克</p>
                    </div>
                    <div class="bg-white rounded-xl shadow-lg p-6 card-hover">
                        <div class="text-4xl mb-4 feature-icon">
                            <i class="fas fa-tachometer-alt"></i>
                        </div>
                        <h3 class="text-xl font-semibold mb-2">实时显示</h3>
                        <p class="text-gray-600">应用界面实时显示重量读数，便于快速调整和记录测量结果</p>
                    </div>
                    <div class="bg-white rounded-xl shadow-lg p-6 card-hover">
                        <div class="text-4xl mb-4 feature-icon">
                            <i class="fas fa-sliders-h"></i>
                        </div>
                        <h3 class="text-xl font-semibold mb-2">校准支持</h3>
                        <p class="text-gray-600">提供校准功能，通过已知重量物体优化测量精度</p>
                    </div>
                    <div class="bg-white rounded-xl shadow-lg p-6 card-hover">
                        <div class="text-4xl mb-4 feature-icon">
                            <i class="fas fa-code-branch"></i>
                        </div>
                        <h3 class="text-xl font-semibold mb-2">开源可扩展</h3>
                        <p class="text-gray-600">基于Swift开发，代码公开，允许用户自定义功能或界面</p>
                    </div>
                </div>
            </div>
        </section>

        <!-- Use Cases -->
        <section class="mb-16">
            <div class="max-w-4xl mx-auto">
                <h2 class="text-3xl font-bold mb-8 section-title">使用场景</h2>
                <div class="space-y-6">
                    <div class="bg-white rounded-xl shadow-lg p-6 flex items-start space-x-4 card-hover">
                        <div class="text-3xl text-purple-600">
                            <i class="fas fa-utensils"></i>
                        </div>
                        <div class="flex-1">
                            <h3 class="text-xl font-semibold mb-2">厨房称重</h3>
                            <p class="text-gray-600">在烹饪时称量小份食材（如香料或面粉），无需额外购买厨房秤。随时可用的轻量级称重工具让烹饪更加精准。</p>
                        </div>
                    </div>
                    <div class="bg-white rounded-xl shadow-lg p-6 flex items-start space-x-4 card-hover">
                        <div class="text-3xl text-purple-600">
                            <i class="fas fa-box"></i>
                        </div>
                        <div class="flex-1">
                            <h3 class="text-xl font-semibold mb-2">邮寄包裹</h3>
                            <p class="text-gray-600">快速测量小型包裹重量（如信封或小件商品），便于估算邮费，让寄送更加便捷。</p>
                        </div>
                    </div>
                    <div class="bg-white rounded-xl shadow-lg p-6 flex items-start space-x-4 card-hover">
                        <div class="text-3xl text-purple-600">
                            <i class="fas fa-flask"></i>
                        </div>
                        <div class="flex-1">
                            <h3 class="text-xl font-semibold mb-2">硬件实验</h3>
                            <p class="text-gray-600">开发者或硬件黑客利用TrackWeight测试触控板传感器数据，探索更多创新应用，挖掘触控板的无限潜能。</p>
                        </div>
                    </div>
                </div>
            </div>
        </section>

        <!-- Advantages -->
        <section class="mb-16">
            <div class="max-w-4xl mx-auto">
                <h2 class="text-3xl font-bold mb-8 section-title">优势与特色</h2>
                <div class="bg-white rounded-2xl shadow-xl p-8">
                    <div class="grid md:grid-cols-3 gap-8 mb-8">
                        <div class="text-center">
                            <div class="text-5xl text-purple-600 mb-4">
                                <i class="fas fa-dollar-sign"></i>
                            </div>
                            <h3 class="text-xl font-semibold mb-2">零硬件成本</h3>
                            <p class="text-gray-600">利用现有MacBook触控板，无需额外设备</p>
                        </div>
                        <div class="text-center">
                            <div class="text-5xl text-purple-600 mb-4">
                                <i class="fas fa-bullseye"></i>
                            </div>
                            <h3 class="text-xl font-semibold mb-2">高精度测量</h3>
                            <p class="text-gray-600">通过底层压力数据，精度可媲美低端电子秤</p>
                        </div>
                        <div class="text-center">
                            <div class="text-5xl text-purple-600 mb-4">
                                <i class="fas fa-users"></i>
                            </div>
                            <h3 class="text-xl font-semibold mb-2">活跃社区</h3>
                            <p class="text-gray-600">6.2k星标，260+次Fork，持续优化更新</p>
                        </div>
                    </div>
                    <div class="bg-red-50 rounded-lg p-6">
                        <h4 class="text-lg font-semibold mb-3 text-red-800">
                            <i class="fas fa-exclamation-triangle mr-2"></i>
                            使用局限性
                        </h4>
                        <ul class="space-y-2 text-red-700">
                            <li><i class="fas fa-hand-paper mr-2"></i>需保持手指接触触控板以触发电容感应</li>
                            <li><i class="fas fa-weight-hanging mr-2"></i>不支持超过3.5公斤的物体</li>
                            <li><i class="fas fa-laptop mr-2"></i>仅限macOS 13.0+和Force Touch触控板设备</li>
                        </ul>
                    </div>
                </div>
            </div>
        </section>

        <!-- Technical Architecture -->
        <section class="mb-16">
            <div class="max-w-4xl mx-auto">
                <h2 class="text-3xl font-bold mb-8 section-title">技术架构</h2>
                